package com.fm.openinstall.b;

import java.io.*;
import android.text.*;
import org.json.*;

public class d implements Serializable
{
    private String a;
    private String b;
    private String c;

    public d() {
        this.a = "";
        this.b = "";
        this.c = "";
    }

    public static d d(final String s) {
        final d d = new d();
        if (TextUtils.isEmpty((CharSequence)s)) {
            return d;
        }
        final JSONObject jsonObject = new JSONObject(s);
        if (jsonObject.has("market")) {
            d.a(jsonObject.optString("market"));
        }
        if (jsonObject.has("channelCode")) {
            d.b(jsonObject.optString("channelCode"));
        }
        if (jsonObject.has("bind")) {
            d.c(jsonObject.optString("bind"));
        }
        return d;
    }

    public String a() {
        return this.b;
    }

    public void a(final String a) {
        this.a = a;
    }

    public String b() {
        return this.c;
    }

    public void b(final String b) {
        this.b = b;
    }

    public void c(final String c) {
        this.c = c;
    }
}
